﻿using System.ServiceModel;

namespace RRSimulator.BlobManager.Service.Responses
{
    [MessageContract]
    public class UploadBlockStreamResponse : BlobManagerMessageResponseBase
    {
        private bool _isDisposed;

        [MessageHeader(MustUnderstand = true)]
        public string BlockId { get; set; }

        protected override void Dispose(bool isDisposing)
        {
            if (!_isDisposed)
            {
                if (isDisposing)
                {
                    BlockId = null;
                }

                _isDisposed = true;
            }

            base.Dispose(isDisposing);
        }
    }
}
